﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ACC.Data.Entities.Mes
{
    /// <summary>
    /// MES-SCADA-12 设备状态
    /// </summary>
    public class SCADAEquipmentStateReport
    {
        public string center_code;
        public string center_name;
        public string cell_code;
        public string cell_name;

        public List<SCADAEquipmentState> detail;
    }

    /// <summary>
    /// 工位设备状态信息
    /// </summary>
    public class SCADAEquipmentState
    {
        public string equip_code;
        public uint equip_state;        // 1-运行(无故障), 2-运行(二级故障), 3-一级故障, 4-停机, 5-离线, 6-等待
        public string equip_state_des;  // equip_state为2~5时，写入具体的状态描述
        public uint equip_mode;         // 1-手动, 2-自动, 3-维修
        public string autorun_stime;
        public string autorun_etime;
        public string equip_poweron;    // 设备上电时间
        public string equip_poweroff;   // 设备离线时间　equip_state为4时写入
        public string mark_time = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); // 当前时间戳
    }
}
